ClientCertificate

public interface ClientCertificate implements Certificate

A client SSL certificate.

Functions

Link copied to clipboard
public Array<byte> derEncodedValue()
Returns an array of bytes that represents the DER-encoded representation of .
Link copied to clipboard
Returns the list of intermediate certificates associated with this certificate needed for chain building.
Link copied to clipboard
public static Certificate of(X509Certificate x509Cert)
Returns the Certificate instance for the given X.509 certificate.
public static ClientCertificate of(X509Certificate x509Cert, SslPrivateKey privateKey)
Returns the ClientCertificate instance for the given certificate and SSL private key.
public static Certificate of(X509Certificate x509Cert, List<X509Certificate> intermediateX509Certs)
Returns the Certificate instance for the given X.509 certificate and the list of intermediate X.509 certificates associated with this the certificate that may be needed for chain building.
public static ClientCertificate of(Path keystoreFilePath, String keystorePassword, KeyStoreType keyStoreType)
Loads a client certificate from the given keystore file with the given password and keystore type.
public static ClientCertificate of(X509Certificate x509Cert, SslPrivateKey privateKey, List<X509Certificate> intermediateX509Certs)
Returns the ClientCertificate instance for the given certificate, SSL private key, and intermediate certificates.
Link copied to clipboard
Returns the SSL private key of this client certificate.
Link copied to clipboard
Returns an Optional that contains an X.